import { create } from "zustand";

type State = {
  collapsed: boolean;
};
type Actions = {
  changeCollapsed: () => void;
};

const useSystem = create<State & Actions>((set) => ({
  collapsed: false,
  changeCollapsed: () =>
    set((state) => ({
      collapsed: !state.collapsed,
    })),
}));

export default useSystem;
